import { defineBuildConfig } from 'unbuild'

export default defineBuildConfig({
  entries: ['plugins/index.ts'],
  outDir: 'dist',
  name: 'vite-plugin-uni',
  declaration: true,
  clean: true,
  rollup: {
    emitCJS: true,
    inlineDependencies: true,
  },
  externals: ['vite', 'Buffer'],
})
